package club.zhilin.guli.service.cms.feign;

import club.zhilin.guli.common.base.result.CommonResult;
import club.zhilin.guli.service.cms.feign.impl.OssFileServiceImpl;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;

/**
 * @author zhilin
 * @since 2022/2/22 16:23
 */
@FeignClient(value = "service-oss")
@SentinelResource(fallbackClass = OssFileServiceImpl.class)
public interface OssFileService {
    /**
     * 远程调用删除
     *
     * @param url adImageId
     * @return commonResult
     */
    @DeleteMapping("/admin/oss/file/deleteFile")
    CommonResult<String> remove(String url);
}
